xen/arm: Tweak the dump page-table walk output
authorJulien Grall <jgrall@amazon.com>
Fri, 12 Aug 2022 19:24:45 +0000 (20:24 +0100)
committerJulien Grall <julien@xen.org>
Wed, 31 Aug 2022 19:16:22 +0000 (20:16 +0100)
commite1710891c72b513dea8e24a3e0d8969a91a4fa39
treefafb9c7a2b05066ab97d07436a607b7170df4c23
parent3babad2af858630b9196b89681a54d4360d39025
xen/arm: Tweak the dump page-table walk output

Currently the output is looking like:

(XEN) 1ST[0x1] = 0x000000004015ff7f
(XEN) 2ND[0x1f] = 0x00500000bfe00f7d

The content of the entries are not aligned making a bit trickier to
read (I appreciate this is a matter of taste).

Align the values by forcing the index to be always printed using
3 characters (enough to cover 512 in hexadecimal).

New output:

(XEN) 1ST[0x001] = 0x000000004015ff7f
(XEN) 2ND[0x01f] = 0x00500000bfe00f7d

Signed-off-by: Julien Grall <jgrall@amazon.com>
Reviewed-by: Bertrand Marquis <bertrand.marquis@arm.com>
Reviewed-by: Henry Wang <Henry.Wang@arm.com>
xen/arch/arm/mm.c